<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<script type="text/javascript">
	//文本框
	var editor;
	$(function() {
		editor = $("#body")
				.xheditor(
						{
							tools : 'Removeformat,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,Align,Emot,Link',
							skin : 'default',
							showBlocktag : false,//段落标签
							internalScript : false,
							internalStyle : false,
							width : 580,
							height : 200,
							fullscreen : false,
							forcePtag : true,
							cleanPaste : 1,
							upMultiple : 1,
							html5Upload : false
							//upImgUrl : "",
							/* upImgExt : 'jpg,jpeg,gif,png',
							onUpload : insertUpload */
						//指定回调函数
						});
		//	$("#seckillcontent").focus();
	});
	//简介
	var editor2;
	$(function() {
		editor2 = $("#desc")
				.xheditor(
						{
							tools : 'Removeformat,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,Align,Emot,Link',
							skin : 'default',
							showBlocktag : false,//段落标签
							internalScript : false,
							internalStyle : false,
							width : 580,
							height : 200,
							fullscreen : false,
							forcePtag : true,
							cleanPaste : 1,
							upMultiple : 1,
							html5Upload : false
						});
		
	});
</script>
<div style="background: #fff; padding:10px; border:1px solid #ccc;" id="div_addVote">
<input type="hidden" id="votePicUrl" value="${vote.picUrl }"/>
<div><font color="orange">添加或修改<c:if test="${app=='01' }">温泉季</c:if><c:if test="${app=='02' }">灯会</c:if>投票项:</font></div>
	<table border="1" id="table_post_vote">
		<tr>
			<td>标题</td>
			<td ><input type="text" id="title" value="${vote.title }">
			</td>
		</tr>
		<c:if test="${app=='03' }">
			<tr>
				<td>投票项目</td>
				<td>
					<input type="radio" name="RadioVoteType" value="01" <c:if test="${vote.voteType=='01'}">checked="checked"</c:if>>酒店
					<input type="radio" name="RadioVoteType" value="02" <c:if test="${vote.voteType=='02'}">checked="checked"</c:if>>景区
					<input type="radio" name="RadioVoteType" value="03" <c:if test="${vote.voteType=='03'}">checked="checked"</c:if>>旅行社
					<input type="radio" name="RadioVoteType" value="04" <c:if test="${vote.voteType=='04'}">checked="checked"</c:if>>旅游客运
					<input type="radio" name="RadioVoteType" value="05" <c:if test="${vote.voteType=='05'}">checked="checked"</c:if>>旅游目的地
				</td>
			</tr>
		</c:if>
		<tr>
			<td>投票内容</td><td><textarea id="body" name="body">${vote.body }</textarea>
			</td>
		</tr>
		<tr>
			<td>图片:</td><td><img width="100px" height="100px" src="${vote.picUrl }"><form id="vote_upload_img_form2" enctype="multipart/form-data"
				method="post" action="voteUploadImg.cms"><input type="file" id="uploadImgVote2" name="uploadImgVote2" onchange="voteUploadImg2();return false;"></form>
			</td>
		</tr>
		<tr align="center">
			<td colspan="4">
			<input type="button" value="保存" onclick="postVote('${vote.identifier}');">
			<input type="button" value="关闭" onclick="closeTanchu();">
			</td>
		</tr>
	</table>
</div>
